const common = require('./webpack.common')
cosnt merge = require('webpack-merge')
const {CleanWebpackPlugin} = require('clean-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')

module.exports = Object.asign({},common,{
    mode:'production',
    plugins:[
        //清除dist
        new CleanWebpackPlugin(),
        //复制public目录的文件
        new CopyWebpackPlugin(['public'])
    ],
    devtool:'nosources-source-map',
})